﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using SpriteClasses;

namespace FrostFights
{
    class IceStar : Projectile
    {
        protected static float initialSpeed = 400f;
        protected Vector2 normalizedAngle;

        public IceStar(Vector2 firingPosition, Vector2 directionalForce, float angle)
            : base(Game1.iceStarImg,1.5f,Game1.Gravity + directionalForce, firingPosition,Vector2.Zero,0.2f,initialSpeed,0.45f,SpriteEffects.None)
        {
            normalizedAngle = new Vector2((float)Math.Cos(angle),(float)Math.Sin(angle));
            initialVelocity = normalizedAngle * moveSpeed;
            Game1.soundThrowIceBall.Play();
        }

        public override void Update(GameTime gameTime, GraphicsDevice Device)
        {
            base.Update(gameTime, Device);
            if (IsOffScreen(Device))
            {
                Active = false;
            }
            if (Active)
            {

            }
        }
    }
}
